package com.liyongjian.apidoc.dal;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.liyongjian.apidoc.domain.Param;
import com.liyongjian.apidoc.domain.enumm.LiveDieState;


public interface ParamRepository extends PagingAndSortingRepository<Param, Long> {

    Param findByUserIdAndNameAndApiIdAndParentId(Long userId, String name, Long apiId,
            Long parentId);

    List<Param> findByApiIdAndState(Long apiId, LiveDieState state);

}
